﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Search.ascx.cs" Inherits="School.Controls.Search" %>

<style type="text/css">
    #search_con{ padding-left:4px;}
    #search_text{ margin-left:5px; }
    #search_txtbox .search_box{ height:13px; width:144px;border:none; background:none;}
    #btnSearch_con{ margin-right:10px;*margin-right:5px;}
    .selecticon{ margin:3px 0 0 4px;}
    select{ width:80px; height:20px;}
</style>
<script type="text/javascript">
    function check() {
        var searchValue = $(".search_box").val();
        if ($.trim(searchValue) == "" || searchValue.length == 0) {
            alert("请输入要搜索的相关关键字!");
            return false;
        }
        return true;
    }
</script>
<div id="search_con">
    <span id="search_text">站内搜索</span>
    <asp:Panel ID="Panel1" runat="server" DefaultButton="btnSearch">    
        <div id="search_txtbox" >
            <asp:TextBox ID="search_box" runat="server" CssClass="search_box"></asp:TextBox>
        </div>
        <div class="float_left selecticon">
            <asp:DropDownList ID="rbtn_FindItem" runat="server">
                <asp:ListItem Selected="True" Value="0">文章</asp:ListItem>
                <asp:ListItem Value="1">资源</asp:ListItem>
                <asp:ListItem Value="2">教师</asp:ListItem>
            </asp:DropDownList>
        </div> 
        <div id="btnSearch_con" class="float_right" ><%--<input id="btnSearch" type="submit" value="" onclick="return btnSearch_onclick()" />--%>
            <asp:Button ID="btnSearch" runat="server" Text="" onclick="btnSearch_Click" CssClass="btnSearch" OnClientClick="return check();"  />
        </div>
    </asp:Panel>
    <div class="clear"></div>                                      
</div>